

//引入less样式
require('../less/advert.less');


window.addEventListener('load',function(){
    
    //获取
    const time=document.querySelector('.time');
    const jump=document.querySelector('.jump');
    let num=5;

    setInterval(function(){
        num--;
        
        if(num<=0){
            location.href="./register.html"
        }else{
            time.textContent=num+'s'
        }
        
    },1000)

    jump.addEventListener('click',function(){
        location.href="./register.html"
    })
})